Skip to content

Migrate from pre-commit to prek - #195

Merged
berendkleinhaneveld merged 1 commit into
masterfrom
migrate-to-prek
Jul 13, 2026
Merged

Migrate from pre-commit to prek#195
berendkleinhaneveld merged 1 commit into
masterfrom
migrate-to-prek

Conversation

@berendkleinhaneveld

Copy link
Copy Markdown
Collaborator

What

Migrate the pre-commit tooling from pre-commit to prek.

  • Swap the pre-commit dev dependency for prek in pyproject.toml
  • Update the install command in the README to uv run prek install

Why

prek is a faster, dependency-light Rust reimplementation of pre-commit. It's a drop-in replacement that reads the existing .pre-commit-config.yaml unchanged, so no hook configuration changes are needed.

Notes for reviewers

  • .pre-commit-config.yaml is intentionally untouched — prek consumes it as-is.
  • After pulling, run uv sync --all-groups and uv run prek install --overwrite to swap the local git hook from pre-commit to prek.
  • Verified uv run prek run --all-files passes all three hooks (lint, format, pytest).

🤖 Generated with Claude Code

prek is a drop-in replacement for pre-commit and reuses the existing
.pre-commit-config.yaml unchanged. Swap the dev dependency and update
the install command in the README.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@berendkleinhaneveld
berendkleinhaneveld merged commit 5b8018d into master Jul 13, 2026
9 of 10 checks passed
@berendkleinhaneveld
berendkleinhaneveld deleted the migrate-to-prek branch July 13, 2026 08:57
berendkleinhaneveld added a commit that referenced this pull request Jul 21, 2026
Features:
- Add pure-Python view API as alternative to cgx templates (#193)
- Support text elements for PySide widgets that display text (#191)

Fixes & internals:
- Fragment parenting overhaul (#162)
- Fix PyInstaller hook for CGX files inside packages (#184)
- Write compiled AST to temp file when CGX_DEBUG is set (#175)

Performance:
- Speed up mount path: cheap arity check, reuse first(), leaner emit (#186)
- Cache Fragment._component_parent() lookups (#187)
- Avoid redundant anchor lookups in Fragment.anchor() and unkeyed v-for (#188)

Documentation:
- Add MkDocs documentation with GitHub Pages deployment (#176)
- Add internals architecture documentation page (#194)
- Add docs badge and links to README (#192)

Tooling & CI:
- Add benchmark suite and per-PR benchmark CI workflow (#185)
- Make benchmark CI guard robust against run-to-run noise (#196)
- Update GitHub actions from Node 20 to Node 24 (#190)
- Migrate from pre-commit to prek (#195)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant